{% if paginator.has_previous or  paginator.has_next %}
<nav id="pagenavi">
    {% if paginator.has_previous %}
        <a class="prev" href="{{ paginator.previous_page_url }}">{{ lang('prev') }}</a>
    {% endif %}
	{% if paginator.has_next %}
        <a class="next" href="{{ paginator.next_page_url}}">{{ lang('next') }}</a>
    {% endif %}
<div class="center"><a href="/archive">{{ lang('archive') }}</a></div>
</nav>
{% endif %}